export default {
  namespaced: true,
  state: {
    orders: [  //所有 的 订单
      {
        // 订单编号  订单状态 status 0 1 2 3 4 5 
        order: Date.now(),
        status: 0, // 0 1 2 3 4 
        concat: { //联系人

        },
        items: [],
        total: 12
      }
    ],
    nowOrder: { //当前订单  订单页的订单
      contact: {
        name: ''
      }
    }
  },
  mutations: {
    setNowOrder (state, order) {
    
      state.nowOrder = order
    },
    setOrderContact (state, contact) {
      console.log(contact,111)
      // 设置当前订单的联系人
      state.nowOrder.contact = contact
    }
  }
}